package com.example.wxchatdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Register extends AppCompatActivity {
    private EditText account,password,password_sure,username;
    private Button register;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        account = findViewById(R.id.account);
        username = findViewById(R.id.username);
        password = findViewById(R.id.password);
        password_sure = findViewById(R.id.password_sure);//可设置两次密码不一致时的事件
        register = findViewById(R.id.register);

        register.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                /***
                 * 开一个线程完成注册，将账号、昵称、密码传到后端处理
                 */
            }
        });


    }
}